using JTZY.Model.Goods;

namespace JTZY.Model.Goods
{
    /// <summary>
    /// 良品
    /// </summary>
    [SugarTable("corecmsusergoods")]
    public class Corecmsusergoods
    {
        /// <summary>
        /// 序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 商品序列 
        /// </summary>
        public int GoodId { get; set; }

        /// <summary>
        /// 商品编辑时间 
        /// </summary>
        public DateTime? GoodRefreshTime { get; set; }

        /// <summary>
        /// 排序 
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 最后更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 所属客户 
        /// </summary>
        public long? UserId { get; set; }

        /// <summary>
        /// 客户商品名称 
        /// </summary>
        public string GoodName { get; set; }

        /// <summary>
        /// 品牌 
        /// </summary>
        public int? GoodBrand { get; set; }

        /// <summary>
        /// 商品搜索关键字 
        /// </summary>
        public string Goodkeys { get; set; }

        /// <summary>
        /// Images 
        /// </summary>
        public string Images { get; set; }

        public string intro { get; set; }

        /// <summary>
        /// 上下架 
        /// </summary>
        public int? Marketable { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Corecmsuserstock.GoodId), nameof(Id))] //自定义关系映射
        public List<Corecmsuserstock> CorecmsuserstockNav { get; set; }
    }
}